package com.cy.ssm.controller;

import com.cy.ssm.pojo.Item;
import com.cy.ssm.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ItemController {
    @Autowired
    private ItemService itemService;
    @RequestMapping("/item/list")
    public List<Item>list(Integer num){
        return itemService.list(num);
    }

}
